package com.mycode.interpreter16.resolve;

// And解释：非终结符表达式
public class AndNode extends AbstractNode {

    // And 的左表达式
    private AbstractNode left;
    // And 的右表达式
    private AbstractNode right;

    public AndNode(AbstractNode left, AbstractNode right) {
        this.left = left;
        this.right = right;
    }

    // And 表达式解释操作
    @Override
    public String interpret() {
        return left.interpret() + " 再 " + right.interpret();
    }
}
